<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Delete_driver
 *
 * @author admin
 */
class delete_driver extends MY_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('driver_model');
    }

    public function index() {
        $id = $this->input->get('id');
//        $this->Driver_model->delete_driver_image($id);
        $this->driver_model->delete_driver($id);
        redirect('driver/home');
    }

}
